/* Kaskus emoticon For Threaded comment
 * bY Putra Arif Prasetyo
 * Url: http://putraarifprasetyo.blogspot.com/
 */

//<![CDATA[

a = document.getElementsByTagName('LABEL');
if(a) {
    for(i=0; i < a.length; i++) {
        _str = a.item(i).innerHTML.replace(/:k1/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/ngakak.gif' height='50' width='50' class='smiley'/>");
        _str = _str.replace(/:k4/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/cool2.gif' height='50' width='50' class='smiley'/>");
        _str = _str.replace(/:k5/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/toastcendol.gif' height='50' width='50' class='smiley'/>");
        _str = _str.replace(/:k6/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/hammer.gif' height='50' width='50' class='smiley'/>");
        _str = _str.replace(/:k7/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/ngacir2.gif' height='50' width='50' class='smiley'/>");
        _str = _str.replace(/:k8/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/capede.gif' height='50' width='50' class='smiley'/>");
        _str = _str.replace(/:k9/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/bingung.gif' height='50' width='50' class='smiley'/>");
                _str = _str.replace(/:a6/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/takut.gif' height='50' width='50' class='smiley'/>");
        _str = _str.replace(/:b5/gi,"<img src='https://putraarif42.googlecode.com/svn/emo/marah.gif' height='50' width='50' class='smiley'/>");
        _str = _str.replace(/:b6/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/najis.gif' height='50' width='50' class='smiley'/>");
        _str = _str.replace(/:b7/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/nosara.gif' height='50' width='50' class='smiley'/>");
       _str = _str.replace(/:b8/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/mewek.gif' height='50' width='50' class='smiley'/>");
       _str = _str.replace(/:b9/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/repost.gif' height='50' width='50' class='smiley'/>")
        a.item(i).innerHTML = _str;
    }
}

a = document.getElementById('comments');
if(a) {
    b = a.getElementsByTagName("DD");
    for(i=0; i < b.length; i++) {
            if (b.item(i).getAttribute('CLASS') == 'cm_entry') {
                _str = b.item(i).innerHTML.replace(/:k1/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/ngakak.gif' height='50' width='50' class='smiley'/>");
                _str = _str.replace(/:a8/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/batamerah.gif' height='50' width='50' class='smiley'/>");
        _str = _str.replace(/:k2/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/fd_2.gif' height='50' width='50' class='smiley'/>");
        _str = _str.replace(/:k3/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/sundul.gif' height='50' width='50' class='smiley'/>");
        _str = _str.replace(/:k4/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/cool2.gif' height='50' width='50' class='smiley'/>");
                _str = _str.replace(/:k5/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/toastcendol.gif' height='50' width='50' class='smiley'/>");
                _str = _str.replace(/:k6/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/hammer.gif' height='50' width='50' class='smiley'/>");
                _str = _str.replace(/:k7/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/ngacir2.gif' height='50' width='50' class='smiley'/>");
                _str = _str.replace(/:k8/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/capede.gif' height='50' width='50' class='smiley'/>");
                _str = _str.replace(/:k9/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/bingung.gif' height='50' width='50' class='smiley'/>");
                _str = _str.replace(/:a1/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/jempol2.gif' height='50' width='50' class='smiley'/>");
                _str = _str.replace(/:a2/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/shakehand.gif' height='50' width='50' class='smiley'/>");
                _str = _str.replace(/:a3/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/hoax.gif' height='50' width='50' class='smiley'/>");
                _str = _str.replace(/:a4/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/rate5.gif' height='50' width='50' class='smiley'/>");
                _str = _str.replace(/:a5/gi,"<img src='https://putraarif42.googlecode.com/svn/emo/I-Luv-Indonesia.gif' height='50' width='50' class='smiley'/>");
        _str = _str.replace(/:a6/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/takut.gif' height='50' width='50' class='smiley'/>");
                _str = _str.replace(/:a7/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/cystg.gif' height='50' width='50' class='smiley'/>");
        _str = _str.replace(/:a9/gi,"<img src='https://putraarif42.googlecode.com/svn/emo/top1.gif' height='50' width='50' class='smiley'/>");
        _str = _str.replace(/:b1/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/malu.gif' height='50' width='50' class='smiley'/>");
                _str = _str.replace(/:b2/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/berduka.gif' height='50' width='50' class='smiley'/>");
        _str = _str.replace(/:b3/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/request.gif' height='50' width='50' class='smiley'/>");
        _str = _str.replace(/:b4/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/matabelo1.gif' height='50' width='50' class='smiley'/>");
        _str = _str.replace(/:-\q/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/cool2.gif' height='50' width='50' class='smiley'/>");
        _str = _str.replace(/:b5/gi,"<img src='https://putraarif42.googlecode.com/svn/emo/marah.gif' height='50' width='50' class='smiley'/>");
        _str = _str.replace(/:b6/gi,"<img src='https://putraarif42.googlecode.com/svn/emo/najis.gif' height='50' width='50' class='smiley'/>");
        _str = _str.replace(/:b7/gi,"<img src='https://putraarif42.googlecode.com/svn/emo/nosara.gif' height='50' width='50' class='smiley'/>");
        _str = _str.replace(/:b8/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/mewek.gif' height='50' width='50' class='smiley'/>");
       
                b.item(i).innerHTML = _str;
            }
    }
}

a = document.getElementById('comments');
if(a) {
    c = a.getElementsByTagName("DD");
    for(i=0; i < c.length; i++) {
            if (c.item(i).getAttribute('CLASS') == 'cm_entry_a') {
                _str = c.item(i).innerHTML.replace(/:k1/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/ngakak.gif' height=50' width='50' class='smiley'/>");
        _str = _str.replace(/:a8/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/batamerah.gif' height='50' width='50' class='smiley'/>");              
        _str = _str.replace(/:k2/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/fd_2.gif' height='50' width='50' class='smiley'/>");
        _str = _str.replace(/:k3/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/sundul.gif' height='50' width='50' class='smiley'/>");
        _str = _str.replace(/:k4/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/cool2.gif'height='50' width='50' class='smiley'/>");
                _str = _str.replace(/:k5/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/toastcendol.gif' height='50' width='50' class='smiley'/>");
                _str = _str.replace(/:k6/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/hammer.gif' height='50' width='50' class='smiley'/>");
                _str = _str.replace(/:k7/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/ngacir2.gif' height='50' width='50' class='smiley'/>");
                _str = _str.replace(/:k8/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/capede.gif' height='50' width='50' class='smiley'/>");
                _str = _str.replace(/:k9/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/bingung.gif' height='50' width='50' class='smiley'/>");
                _str = _str.replace(/:a1/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/jempol2.gif' height='50' width='50' class='smiley'/>");
                _str = _str.replace(/:a2/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/shakehand.gif' height='50' width='50' class='smiley'/>");
                _str = _str.replace(/:a3/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/hoax.gif' height='50' width='50' class='smiley'/>");
                _str = _str.replace(/:a4/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/rate5.gif' height='50' width='50' class='smiley'/>");
                _str = _str.replace(/:a5/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/I-Luv-Indonesia.gif' height='50' width='50' class='smiley'/>");
        _str = _str.replace(/:a6/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/takut.gif' height='50' width='50' class='smiley'/>");
        _str = _str.replace(/:a7/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/cystg.gif' height='50' width='50' class='smiley'/>");
        _str = _str.replace(/:a9/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/top1.gif' height='50' width='50' class='smiley'/>");
        _str = _str.replace(/:b1/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/malu.gif' height='50' width='50' class='smiley'/>");
                _str = _str.replace(/:b2/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/berduka.gif' height='50' width='50' class='smiley'/>");
        _str = _str.replace(/:b3/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/request.gif' height='50' width='50' class='smiley'/>");
        _str = _str.replace(/:b4/gi, "<img src='https://putraarif42.googlecode.com/svn/emo/matabelo1.gif' height='50' width='50' class='smiley'/>");
        _str = _str.replace(/:-\q/ig,"<img src='https://putraarif42.googlecode.com/svn/emo/cool2.gif' height='50' width='50' class='smiley'/>")
        _str = _str.replace(/:b5/gi,"<img src='https://putraarif42.googlecode.com/svn/emo/marah.gif' height=50' width='50' class='smiley'/>")
                c.item(i).innerHTML = _str;
            }
    }
}
//]]>